/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package box;

/**
 *
 * @author luca.ortolani
 */

    
class Box2 {
    int width;
    int height;
    int depht;
    void calculateVolume(){
        System.out.print("volume is");
        System.out.println(width * height * depht);
    }
    void calculateArea(){
        System.out.print("Area is");
        System.out.println(width * height);
    }
    int calculateArea(int a){
        return width * width;
        }
    public static void box2(String arqs[]){
        Box2 mybox1 = new Box2();
        mybox1.width = 10;
        mybox1.height = 20;
        mybox1.depht = 15;
        mybox1.calculateVolume();
        mybox1.calculateArea();
        int area;
        area = mybox1.calculateArea(10);
        System.out.println("Area del quadrato:" + area);
        System.out.println("Operazioni aritmetiche di tipo intero: \n");
        int a = 1 + 1;
        int b = a * 3;
        int c = b / 4;
        int d = c - a;
        int e = -d;
    
    }}
